package chances.wechat.model;

public class PlayCtrlCmd implements java.io.Serializable {
	
	private static final long serialVersionUID = 4073950562764305942L;
	
	public static final String PLAY_TYPE_VOD = "vod";
	public static final String PLAY_TYPE_SERIES = "series";
	public static final String PLAY_TYPE_CHANNEL = "channel";
	public static final String PLAY_TYPE_PROG = "schedule";
	public static final String PLAY_TYPE_KEY = "key";
	
	public static final String PLAY_CTRL_VOD = "playvod";
	public static final String PLAY_CTRL_SERIES = "playseries";
	public static final String PLAY_CTRL_CHANNEL = "playchannel";
	public static final String PLAY_CTRL_PROG = "playprog";
	public static final String PLAY_CTRL_KEYPRESS = "keypress";
	
	public static String getCtrlType(String type) {
		String ctrlType = PLAY_CTRL_VOD;
		switch (type) {
		case PLAY_TYPE_VOD:
			ctrlType = PLAY_CTRL_VOD;
			break;
		case PLAY_TYPE_SERIES:
			ctrlType = PLAY_CTRL_SERIES;
			break;
		case PLAY_TYPE_CHANNEL:
			ctrlType = PLAY_CTRL_CHANNEL;
			break;
		case PLAY_TYPE_PROG:
			ctrlType = PLAY_CTRL_PROG;
			break;
		case PLAY_TYPE_KEY:
			ctrlType = PLAY_CTRL_KEYPRESS;
			break;
		}
		return ctrlType;
	}

	private String ctrl;
	private String cmd;
	private String value;
	protected String path; 
	protected String type;
	protected String code; 
	protected String title; 
	protected String icon; 
	protected String source;
	protected String prog;
	private String deviceId;
	private String stbNo;

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getStbNo() {
		return stbNo;
	}

	public void setStbNo(String stbNo) {
		this.stbNo = stbNo;
	}

	public String getCtrl() {
		return ctrl;
	}

	public void setCtrl(String ctrl) {
		this.ctrl = ctrl;
	}

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public String getCmd() {
		return cmd;
	}

	public String getPath() {
		return path;
	}

	public String getType() {
		return type;
	}

	public String getCode() {
		return code;
	}

	public String getTitle() {
		return title;
	}

	public String getIcon() {
		return icon;
	}

	public String getSource() {
		return source;
	}

	public void setCmd(String cmd) {
		this.cmd = cmd;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public void setType(String type) {
		this.type = type;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getProg() {
		return prog;
	}

	public void setProg(String prog) {
		this.prog = prog;
	}

}
